package com.hunlian.makelove.tools;

import android.widget.Toast;

import com.hunlian.makelove.AppApplication;
import com.hunlian.makelove.R;

/**
 * 统一的Toast提示
 * @author Jiangshunbin
 *
 */
public class AppToast {
	//提示网络中断
	public static void toastNetDisconnected() {
		Toast.makeText(AppApplication.getAppContext(),
				AppApplication.getAppContext().getResources().getString(R.string.net_disconnected), Toast.LENGTH_SHORT).show();
	}
	
	//提示接口返回数据解析失败
	public static void toastServiceReturnError() {
		Toast.makeText(AppApplication.getAppContext(),
				AppApplication.getAppContext().getResources().getString(R.string.service_return_error), Toast.LENGTH_SHORT).show();
	}
	
	public static void toast(String toastMessage){
		Toast.makeText(AppApplication.getAppContext(), toastMessage, Toast.LENGTH_SHORT).show();
	}
}
